//
//  CollectionArticlesTableViewCell.m
//  chanyou
//
//  Created by leon on 15/1/9.
//  Copyright (c) 2015年 wanli. All rights reserved.
//

#import "CollectionArticlesTableViewCell.h"

@implementation CollectionArticlesTableViewCell
- (void)dealloc
{
    [_titleLabel release];
    [_picImgView release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.picImgView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, self.contentView.frame.size.width / 2.3, self.contentView.frame.size.height * 2.2)];
        [self.contentView addSubview:_picImgView];
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width  / 2, self.contentView.frame.size.height * 3 / 7, self.contentView.frame.size.width * 3 / 7, self.contentView.frame.size.height * 2)];
        _titleLabel.numberOfLines = 0;
        _titleLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
